<?php
include_package( 'Xml' );

class XmlDatabaseColumnElement extends XmlElement {

	function XmlDatabaseColumnElement( &$oConfiguration, &$oColumn ) {

		$this->XmlElement( 'COLUMN' );
		$this->AddAttribute( 'ID'      , $oColumn->GetTableName() . '.' . $oColumn->GetName() );
		$this->AddAttribute( 'NAME'    , $oColumn->GetName() );
		$this->AddAttribute( 'DATATYPE', $oColumn->GetDataType() );
		$this->AddAttribute( 'IS_PART_OF_PRIMARY_KEY', $oColumn->GetIsPartOfPrimaryKey() );
		$this->AddAttribute( 'IS_PART_OF_FOREIGN_KEY', $oColumn->GetIsPartOfForeignKey() );
		
	}
}
	
?>
